<?php
/**
 *
 */
namespace Dclub\modules\Catalog;

class Model_List
    extends \Yz\modules\Generic\Model_List
{


    /**
     *  a name of item class (Yz_Item_Interface)
     *  @var string
     */
    //protected $itemName = false;


    /************************************
     *      Public methods
     ************************************/



    public function fetchListByCat($catId)
    {
        debug();
        return $this->_fetchListWithAction(
                null,
                'SelectListByCat',
                function($action) use ($catId)
                {
                    $action->setCatId($catId);

                    // avoid throwing NotFound ex
                    return $action->execute();
                }
            )
        ;
        return $list;
    }

}
